package com.ctshk.rpc.goods.dto;

import com.ctshk.rpc.goods.dto.htmlFive.CommodityCostAttributeDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 商品分页列表-DTO参数
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-15
 */
@Data
@ApiModel(value = "CommodityPageDTO对象", description = "商品分页列表")
public class CommodityPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "商品规格模板ID")
    private Long commoditySpecificationsNameId;

    @ApiModelProperty(value = "商品规格模板名称")
    private String commoditySpecificationsName;

    @ApiModelProperty(value = "商品分类ID")
    private Long commodityClassificationId;

    @ApiModelProperty(value = "商品分类名称")
    private String commodityClassificationName;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品编码")
    private String commodityNumber;

    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

    @ApiModelProperty(value = "成本属性表id")
    private Long costAttributeId;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "负责人ID")
    private Long chargePersonId;

    @ApiModelProperty(value = "负责人姓名")
    private String chargePersonName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "打包状态:1：允许打包;2：不允许打包;3：只限打包")
    private Integer packStatus;

    @ApiModelProperty(value = "售卖状态：	1：上架；2：下架")
    private Integer saleStatus;

    @ApiModelProperty(value = "审批状态：1：待提交；2：审批中；3：s审批通过；4：审批未通过")
    private Integer approvalStatus;

    @ApiModelProperty(value = "审批id")
    private Long approvalId;

    @ApiModelProperty(value = "文件url")
    private String fileUrl;

    @ApiModelProperty(value = "售价")
    private BigDecimal price;

    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "利润")
    private BigDecimal profit;

    @ApiModelProperty(value = "sku库存")
    private Integer stock;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "区域类型")
    private String areaType;

    @ApiModelProperty(value = "销量")
    private Integer salesVolume;

    @ApiModelProperty(value = "商品规格")
    private List<CommodityCostAttributeDTO> commodityCostAttribute;

}

